package com.wangxue.stock.mapper;

import com.wangxue.stock.pojo.StockBlockRtInfo;
import com.wangxue.stock.vo.resp.R;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author 86198
* @description 针对表【stock_block_rt_info(股票板块详情信息表)】的数据库操作Mapper
* @createDate 2022-05-14 16:36:01
* @Entity com.wangxue.stock.pojo.StockBlockRtInfo
*/
@Mapper
public interface StockBlockRtInfoMapper {

    int deleteByPrimaryKey(Long id);

    int insert(StockBlockRtInfo record);

    int insertSelective(StockBlockRtInfo record);

    StockBlockRtInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(StockBlockRtInfo record);

    int updateByPrimaryKey(StockBlockRtInfo record);
    /**
     * 沪深两市版块分时行情数据查询，以交易时间和交易金额降序查询，去前10条数据
     * @Date 2022/5/20
     */
    List<StockBlockRtInfo> sectorAllLimit();

    /**
     * 板块信息批量插入
     * @param list
     * @return
     */
    int insertBatch(List<StockBlockRtInfo> list);
}
